home *** CD-ROM | disk | FTP | other *** search
-
- /* Generated by Interface Builder */
-
- #import <appkit/View.h>
-
- // the number of edges,
- #define numEdges 10
- // and the maximum velocity of a point in either the x or y direction.
- #define maxVel 4
-
- @interface BounceView:View
- {
- short pos[ numEdges][ 4]; // position of each edge. (x1, y1, x2, y2).
- short vel[ 4]; // current point velocities (for the leading edge)
- id animator; // to keep us moving . . .
- }
-
- + newFrame:(NXRect *)r;
- - setAnimator:anObject;
- - animate:sender;
- - animator;
- - drawSelf:(NXRect *)r :(int)count;
- - moveLine;
-
- @end
-